﻿using hyjx.bind;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GanFengLogViewer.ViewModels
{
    /// <summary>
    /// 日志明细窗体模型
    /// </summary>
    public class LogDetailWindowViewModel : BindableBase
    {
        private DateTime _createDatetime;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedDatetime { get=>_createDatetime; set=>SetProperty(ref _createDatetime,value); }

        private int _interfaceId;
        /// <summary>
        /// 接口 ID
        /// </summary>
        public int InterfaceId { get=>_interfaceId; set=>SetProperty(ref _interfaceId,value); }

        private string? _deviceCode;
        /// <summary>
        /// 设备编码
        /// </summary>
        public string? DeviceCode { get => _deviceCode; set=>SetProperty(ref _deviceCode,value); }

        private string? _requestUrl;
        /// <summary>
        /// 请求地址
        /// </summary>
        public string? RequestUrl { get => _requestUrl; set => SetProperty(ref _requestUrl,value); }

        private string? _requestContent;
        /// <summary>
        /// 请求内容
        /// </summary>
        public string? RequestContent { get => _requestContent; set =>SetProperty(ref _requestContent,value); }

        private string? _responseContent;
        /// <summary>
        /// 响应内容
        /// </summary>
        public string? ResponseContent { get => _responseContent; set=> SetProperty(ref _responseContent, value); }

        private string? _message;
        /// <summary>
        /// 信息
        /// </summary>
        public string? Message { get => _message; set=>SetProperty(ref _message,value); }
        private string? _exceptionDetail;
        /// <summary>
        /// 异常信息
        /// </summary>
        public string? ExceptionDetail { get => _exceptionDetail; set=>SetProperty(ref _exceptionDetail,value);}
    }
}
